package com.nce;

import javax.swing.JFrame;

public class WavePlayerWindow extends JFrame {
		WavePlayerPanel pannello = null;
		
		public WavePlayerWindow(String filename)
		{
			super("myWindow");
			pannello = new WavePlayerPanel(filename);
			this.getContentPane().add(pannello);
			this.setSize(400, 400);
			this.setVisible(true);
			this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

			//this.setContentPane(pannello);
		}
		
		public static void main(String[] args)
		{
			String path = null;
			try{
		      path = System.getProperty("user.dir");
		      path += java.io.File.separator;
		      //System.out.print("Executing at =>"+executionPath.replace("\\", "/"));
			}catch (Exception e){
		      System.out.println("Exception caught ="+e.getMessage());
		      return;
			}
			String waveMulti = path + "temp.wav";
			WavePlayerWindow window = new WavePlayerWindow(waveMulti);
		}
}
